//
//  AppDelegate.h
//  SquashApp
//
//  Created by DonKikochan on 21/01/13.
//  Copyright (c) 2013 Owlab. All rights reserved.
//


//---Imports:---
#import <UIKit/UIKit.h>
//--------------

@interface AppDelegate : UIResponder <UIApplicationDelegate>
{
    NSMutableDictionary*    imagesCache;
}

//---IBOutlets:
@property (strong, nonatomic) UIWindow *window;



//---Functions:
+ (AppDelegate*) mainAppDelegate;
- (void) downloadImageFromUrl_Button:(NSString*)url forButton:(UIButton*) button;
- (void) downloadImageImmediateFromUrl:(NSString*)url forImageView:(UIImageView*)view andTag:(int)tag;
- (void) downloadImageFromUrl:(NSString*)url forImageView:(UIImageView*)view andTag:(int)tag;
- (void) downloadImageWithObj:(NSDictionary*)data;
- (void) removeURLFromCache:(NSString*)url;

@end
